#!/usr/bin/node

const cp = require('child_process');

console.log('I am father process. PID:', process.pid);

let child = cp.spawn('./03-child.js');

//子进程的流连接到父进程的标准输出
child.stdout.pipe(process.stdout);
child.stderr.pipe(process.stderr);
